﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OrganizationStructureTree.Models
{
    public class EmailRegisterModel : EmailModel
    {
        readonly string Header;
        private readonly string Footer;
        private readonly string Content;
        private readonly string Link;
        private readonly string Host = "http://localhost:25934";

        public EmailRegisterModel(string email, string key)
        {
            Link = String.Format(@"{0}/Account/Accept/{1}", Host, key);
            Header = string.Format("Hi. ");
            Content = string.Format("Please accept your registration: {0}", Link);

            base.Body = Header + Content + Footer;
            base.To = email;
            base.Subject = "Accept Registration";
            base.From = "serg.solomentsev@gmail.com";

        }
    }
}